//
//  SRPeronalCenterTableViewCell.m
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/3/25.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import "SRPeronalCenterTableViewCell.h"

NSString *const kSRPeronalCenterTableViewCell = @"SRPeronalCenterTableViewCell";

@implementation SRPeronalCenterTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    
    [self.touchButton setTitleColor:css.color_6 forState:UIControlStateNormal];
	self.touchButton.titleLabel.font = css.fontOfH5;
    self.touchButton.layer.masksToBounds = YES;
    self.touchButton.layer.cornerRadius = 4;
    
    [self.touchButton setBackgroundImage:[UIImage imageWithColor:css.color_5] forState:UIControlStateNormal];
	self.contentView.backgroundColor = css.color_2;
	
	UIView *selectedView = [[UIView alloc] init];
	selectedView.backgroundColor = css.color_2;
	self.selectedBackgroundView = selectedView;
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)onTouchButtonAction:(id)sender {
}

- (void)updateCellInfo:(SRPersonalCenterModel *)data{
    if (!data) {
        return;
    }
    [self.touchButton setTitle:data.title forState:UIControlStateNormal];
}

@end
